package cn.tedu.cwgl.mapper;

import cn.tedu.cwgl.entity.Bill;
import cn.tedu.cwgl.entity.Payway;
import cn.tedu.cwgl.util.PageModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BillMapper {
    List<Bill> findByWhereNoPage(Bill bill);

    List<Bill> findByWhere(PageModel<Bill> bill);

    int getTotalByWhere(PageModel<Bill> model);

    List<Payway> getAllPayways();

    int addBill(Bill bill);

    int deleteBill(Bill bill);

    int updateBill(Bill bill);


}
